array rotation algorithm

join shbcf.ru